﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for Place
/// </summary>
public class Place:ServiceObject
{

//    •	Type (string)
//•	Price (Price)
//•	IsRecommended

	/// <summary>
    /// Fields of Place
    /// </summary>
    #region Fields
    PlaceCategory type;
    Location location;
    decimal price;
    int rank;
    bool isRecommended;   
   
    #endregion

    /// <summary>
    /// Properties of Place
    /// </summary>
    #region Properties
    public PlaceCategory Category
    {
        get { return type; }
        set { type = value; }
    }
    public Location Location
    {
        get { return location; }
        set { location = value; }
    }
    public decimal Price
    {
        get { return price; }
        set { price = value; }
    }
    public int Rank
    {
        get { return rank; }
        set { rank = value; }
    }
    public bool IsRecommended
    {
        get { return isRecommended; }
        set { isRecommended = value; }
    }
    #endregion

    /// <summary>
    /// Constructures Place
    /// </summary>
    #region Constructures
    public Place()
    {
        type = new PlaceCategory();
        location = new Location();
        price = 0;
        isRecommended = true;


    }
    public Place(PlaceCategory type, decimal price, bool isRecommended)
	{
        this.type = type;
        this.price = price;
        this.isRecommended = isRecommended;
        this.location = new Location();
    }
    #endregion
}